package com.rzz.overalldemo.service.impl;

import com.baomidou.dynamic.datasource.annotation.DS;
import com.rzz.overalldemo.common.RespBean;
import com.rzz.overalldemo.pojo.Card;
import com.rzz.overalldemo.mapper.CardMapper;
import com.rzz.overalldemo.service.ICardService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * <p>
 *  服务实现类
 * </p>
 *
 * @author rzz
 * @since 2021-07-30
 */
@Service
public class CardServiceImpl extends ServiceImpl<CardMapper, Card> implements ICardService {
    @DS("overall_demo_copy")
    public RespBean getList(){
        List<Card> list = lambdaQuery().list();
        return RespBean.success("ok",list);
    }

}
